 /**
 * @(#) StartupCommand.as
 *
 * @date		2009. 02. 25.
 * @version		1.0
 * @author		Shin, Yunwoo
 * @description	Application 시작을 처리하는 Command
 * 				 
 */
package com.skt.common_hr.overtime.controller
{
	import com.skt.common_hr.overtime.model.*;
	import com.skt.common_hr.overtime.view.MemberOtListMediator;
	import com.skt.common_hr.overtime.view.OvertimeMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;

	public class StartupCommand extends SimpleCommand implements ICommand
	{
		
		override public function execute(note:INotification):void
		{
			var app:Overtime = (note.getBody() as Overtime);
			
			facade.registerProxy(new MonthlyDeptListProxy());
			facade.registerProxy(new MonthlyMemberListProxy());
			facade.registerProxy(new DeptOtProxy());
			facade.registerProxy(new MemberOtProxy());
			facade.registerProxy(new HolidayProxy());
			facade.registerProxy(new OrgProxy());
			trace("execute startupCommand in Search Module");
			// MVC 모델중 View와 관련한 mediator들을 등록한다.
			facade.registerMediator(new OvertimeMediator(app.view));
			//facade.registerMediator(new MemberOtMediator(app.view.memberView));
			facade.registerMediator(new MemberOtListMediator(app.view.memberOtList));
		}
	}
}